package net.uhuijia.service.goods;


import org.springframework.stereotype.Component;


import feign.hystrix.FallbackFactory;
import net.uhuijia.model.test.Test;

@Component // 不要忘记添加，不要忘记添加
public class TestClientServiceFallbackFactory implements FallbackFactory<TestClientService>
{
	@Override
	public TestClientService create(Throwable throwable)
	{
		return new TestClientService() {
			@Override
			public Test get(String id)
			{
				Test test = new Test();
				test.setName("该ID：" + id + "没有没有对应的信息,null--@HystrixCommand");
				return test;
			}
		};
	}
}
